import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/user/Index'
import My from '@/pages/user/my/My'
import UserOrder from '@/pages/user/order/UserOrder'
import Wallet from '@/pages/user/my/Wallet'
import BecomeClerk from "@/pages/user/my/BecomeClerk"
import UserData from "@/pages/user/my/UserData"
import Clerk from "@/pages/clerk/clerk/Clerk"
import ClerkData from "@/pages/clerk/clerk/ClerkData"
import ClerkDataEdit from "@/pages/clerk/clerk/ClerkDataEdit"
import ClerkUpload from "@/pages/clerk/clerk/ClerkUpload"
import Profit from "@/pages/clerk/clerk/Profit"
import Grade from "@/pages/clerk/clerk/Grade"
import Ranking from "@/pages/clerk/clerk/Ranking"
import ClerkOrderDetail from "@/pages/clerk/clerk/ClerkOrderDetail"
import ClerkOrderStatus from "@/pages/clerk/clerk/ClerkOrderStatus"
import ClerkOrderFinish from "@/pages/clerk/clerk/ClerkOrderFinish"
import ClerkOrder from "@/pages/clerk/order/ClerkOrder"
import Hall from "@/pages/clerk/hall/Hall"



Vue.use(Router)

export default new Router({
  mode: "history",
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/my',
      name: 'My',
      component: My
    },
    {
      path: '/userorder',
      name: 'UserOrder',
      component: UserOrder
    },
    {
      path: '/wallet',
      name: 'Wallet',
      component: Wallet
    },
    {
      path: '/becomeclerk',
      name: 'BecomeClerk',
      component: BecomeClerk
    },
    {
      path: '/userdata',
      name: 'UserData',
      component: UserData
    },
    {
      path: '/clerkorder',
      name: 'ClerkOrder',
      component: ClerkOrder
    },
    {
      path: '/clerk',
      name: 'Clerk',
      component: Clerk
    }
    ,
    {
      path: '/profit',
      name: 'Profit',
      component: Profit
    },
    {
      path: '/grade',
      name: 'Grade',
      component: Grade
    },
    {
      path: '/ranking',
      name: 'Ranking',
      component: Ranking
    },
    {
      path: '/hall',
      name: 'Hall',
      component: Hall
    },
    {
      path: '/clerkdata',
      name: 'ClerkData',
      component: ClerkData
    },
    {
      path: '/clerkdataedit',
      name: 'ClerkDataEdit',
      component: ClerkDataEdit
    },
    {
      path: '/clerkorderdetail',
      name: 'ClerkOrderDetail',
      component: ClerkOrderDetail
    },
    {
      path: '/clerkorderstatus',
      name: 'ClerkOrderStatus',
      component: ClerkOrderStatus
    },
    {
      path: '/clerkorderfinish',
      name: 'ClerkOrderFinish',
      component: ClerkOrderFinish
    }
    ,
    {
      path: '/clerkupload',
      name: 'ClerkUpload',
      component: ClerkUpload
    }
  ]
})
